<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { subInvoke } from "./utils/subprocess";
import { creatMkdir, logs } from "./utils/logs";
export default {
  name: "App",
  mounted() {
    creatMkdir().then(res => {
      logs('打开了软件');
    });

    subInvoke("static").then((res) => {
      this.$store.commit("SET_STATIC", res);
    });
    subInvoke("ai").then((res) => {
      if (res) {
        this.$store.commit("SET_AI", true);
      } else {
        this.$store.commit("SET_AI", false);
      }
    });
    subInvoke("global", "NODE_VERSION").then((res) => {
      console.log(res);
      this.$store.commit("SET_VERSION", res);
    });
  },
};
</script>
<style lang="scss">
@import "./styles/index.scss"; // 全局自定义的css样式
@import "./assets/font/iconfont.css";
#app {
  background: #f7f8fa;
  min-height: 100vh;
}
p {
  display: inline;
}
body {
  padding: 0 !important;
}
</style>
